// 向外暴露一些简单的属性 便于获取

const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  avatar: state => state.user.userInfo.staffPhoto, // 用户头像
  name: state => state.user.userInfo.username, // 用户昵称
  userId: state => state.user.userInfo.userId, // 用户ID
  company: state => state.user.userInfo.company, // 公司昵称
  departmentName: state => state.user.userInfo.departmentName, // 部门昵称
  routes: state => state.user.routes // 快捷访问routes
}
export default getters
